package com.dongdongshop.cart.service;

import com.dongdongshop.cart.pojo.Cart;

import java.util.List;

public interface CartService {
    List<Cart> getCartByRedis(String username);

    List<Cart> addToCart(List<Cart> cartList, Long itemId, Integer num);

    List<Cart> mergeCartlist(List<Cart> redisCart, List<Cart> carts);

    void addCartRedis(String username, List<Cart> mergeCartlist);
}
